/* styles.css */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    margin: 0;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    max-width: 800px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(240, 240, 240, 0.9);
}

.book-image-container {
    width: 30%;
    padding: 20px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

.book-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.book-details {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}

.book-details h2 {
    text-align: center;
    width: 100%;
}

.details-left, .details-right {
    width: 50%;
    padding: 0 10px;
}

.details-left h2, .details-right h2 {
    margin: 5px 0;
    font-size: 16px;
}

.book-intro {
    background-color: white; /* 白色背景 */
    padding: 20px; /* 内边距 */
    border-radius: 5px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影 */
    max-width: 1000px; /* 最大宽度 */
    margin: 20px auto; /* 水平居中 */
}

.book-intro h2, .book-details h2 {
    margin: 0;
    padding-bottom: 10px;
}

.borrow-options {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.button{
    padding: 10px 20px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #58885a;
}

.borrow-options label {
    margin-right: 10px;
}

.error-message {
    color: red;
    font-size: 16px;
    padding: 10px;
}

.return-link {
    bottom: 50px;
    transform: translateX(-50%);
    text-decoration: none;
    color: white;
    background-color: #42A5F5;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.return-link:hover {
    background-color: #1E88E5;
}

form{
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}